﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Churchtoolkit.Utils.BootStrapper;
using Microsoft.Practices.ServiceLocation;

namespace Churchtoolkit.Utils.BackgroundTasks
{
    public class BackgroundTaskBootStrapper : IBootstrapperTask
    {

        #region IBootstrapperTask Members

        public void Execute()
        {
            ServiceLocator.Current.GetAllInstances<IBackgroundTask>().ForEach(task => task.Start());
        }

        #endregion
    }
}
